import styles from './index.less';
import { history } from 'umi';

export default function IndexPage() {
  const goCount = () => {
    history.push('/count')
  }
  const goPerson = () => {
    history.push('/person')
  }
  return (
    <div>
      <h1 className={styles.title}>我是主页</h1>
      <button onClick={goCount}>GO Count</button>&nbsp;&nbsp;
      <button onClick={goPerson}>GO Person</button>
    </div>
  );
}
